const app = getApp()

Page({
  data: {
    navIndex:0,
    siteInfoNum:app.globalData.siteInfo.wechatNum
  },
  onLoad: function () {
  },
  onShow(){
    tt.setStorageSync('indexAC', 0);
    this.setData({
      navIndex:tt.getStorageSync('indexAC')
    })
    if(!this.data.siteInfoNum){
      setTimeout(()=>{
        this.setData({
          siteInfoNum:app.globalData.siteInfo.wechatNum
        })
      },300)
    }
    // console.log(app.globalData.siteInfo);
  },
  onNavtab(e){
    this.setData({
      navIndex:e.detail
    })
  },
  eventHandler(e){
    console.log(e);
  }
})
